package work.mediway.mdm.biz.entity.biz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色关联字典权限表
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/3/25
 */
@ApiModel(value = "work-mediway-mdm-approve-entity-SsUserLinkTable")
@Data
@TableName(value = "SS_UserLinkTable")
public class SsUserLinkTable {
    /**
     * SS_Link_Id
     */
    @TableId(value = "SS_Link_Id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ssLinkId传入时为更新")
    private Long ssLinkId;

    /**
     * SS_User
     */
    @TableField(value = "SS_User")
    @ApiModelProperty(value = "用户id")
    private String ssUser;

    @TableField(exist = false)
    @ApiModelProperty(value = "角色id")
    private String ssRole;

    /**
     * SS_Table
     */
    @TableField(value = "SS_Table")
    @ApiModelProperty(value = "表名")
    @NotBlank(message = "表名不能为空")
    private String ssTable;

    /**
     * SS_Browse
     */
    @TableField(value = "SS_Browse")
    @ApiModelProperty(value = "数据浏览", allowableValues = "Y,N")
    @NotBlank(message = "为Y/N, 不能为空")
    private String ssBrowse;

    /**
     * SS_Edit
     */
    @TableField(value = "SS_Edit")
    @ApiModelProperty(value = "数据编辑", allowableValues = "Y,N")
    @NotBlank(message = "为Y/N, 不能为空")
    private String ssEdit;

    @TableField(value = "SS_Table_Edit")
    @ApiModelProperty(value = "表修改", allowableValues = "Y,N")
    @NotBlank(message = "为Y/N, 不能为空")
    private String ssTableEdit;

    /**
     * SS_Remark
     */
    @TableField(value = "SS_Remark")
    @ApiModelProperty(value = "SS_Remark")
    private String ssRemark;

    /**
     * SS_Create_Date
     */
    @TableField(value = "SS_Create_Date")
    @ApiModelProperty(value = "SS_Create_Date", hidden = true)
    private String ssCreateDate;

    /**
     * SS_Create_Time
     */
    @TableField(value = "SS_Create_Time")
    @ApiModelProperty(value = "SS_Create_Time", hidden = true)
    private String ssCreateTime;

    /**
     * SS_Create_User
     */
    @TableField(value = "SS_Create_User")
    @ApiModelProperty(value = "SS_Create_User", hidden = true)
    private String ssCreateUser;

    /**
     * SS_Update_Date
     */
    @TableField(value = "SS_Update_Date")
    @ApiModelProperty(value = "SS_Update_Date", hidden = true)
    private String ssUpdateDate;

    /**
     * SS_Update_Time
     */
    @TableField(value = "SS_Update_Time")
    @ApiModelProperty(value = "SS_Update_Time", hidden = true)
    private String ssUpdateTime;

    /**
     * SS_Update_User
     */
    @TableField(value = "SS_Update_User")
    @ApiModelProperty(value = "SS_Update_User", hidden = true)
    private String ssUpdateUser;
}